package com.lemon.ui.codemaker.dto;

import java.awt.Component;

import javax.swing.DefaultListCellRenderer;
import javax.swing.ImageIcon;
import javax.swing.JList;

public class ListItem extends DefaultListCellRenderer {

	private static final long serialVersionUID = -2096086010334298738L;

	@Override
	public Component getListCellRendererComponent(JList<? extends Object> list, Object value, int index, boolean isSelected,
			boolean cellHasFocus) {
		super.getListCellRendererComponent(list, value, index, isSelected, cellHasFocus);
		setIcon(new ImageIcon(this.getClass().getResource("/code/icon/package.png")));
		return this;
	}

}
